<?php
include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['twsc']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
$msg = 0;
if(isset($_GET['nid'])){
	$info = getnews($_GET['nid']);
	if($info){
		$msg = 1;
		$pic = $info['pic1'];
		$tpl->assign('info',$info);
		$tpl->assign('pic',$pic);
	}
}
$menu = menulist();
$tpl->assign('msg',$msg);
$tpl->assign('menu',$menu);
if(isset($_GET['nid'])){
$tpl->assign('nid',$_GET['nid']);
}
$tpl->show('news');
?>